package com.woniu.micropropertyserver.mapper;

import com.github.pagehelper.PageInfo;
import com.woniu.microcommonsserver.entity.CarPassInfoEntity;
import com.woniu.micropropertyserver.util.PageRest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author ：zhengbin
 * @date ：Created in 2021/2/2 0002
 * @description：
 * @modified By：
 * @version: $
 */
@Mapper
public interface PassCarInfoMapper {

    List<CarPassInfoEntity> findByParam(@Param("r") PageRest pageRest , @Param("c") CarPassInfoEntity carPassInfoEntity);

    List<CarPassInfoEntity> ExportAll(@Param("c") CarPassInfoEntity carPassInfoEntity);

    @Select("select id ,item,pass_car_num passCarNum,car_owner carOwner,phone,pass_type passType,pass_place passPlace,pass_time passTime,pass_result passResult,curr_img currImg from car_pass_info where pass_car_num =#{passCarNum}")
    CarPassInfoEntity findByNum(String passCarNum);
}
